from pyecharts import options as opts

from pyecharts.charts import Scatter
from pyecharts.faker import Faker
c=(
    Scatter()
    .add_xaxis(Faker.choose())
    .add_yaxis("商家A",Faker.values())
    .add_yaxis("商家B",Faker.values())
    .set_global_opts(
        title_opts=opts.TitleOpts(title="气泡图"),
        visualmap_opts=opts.VisualMapOpts(type_='size',max_=150,min_=20),

    )
    .render("气泡图.html")
)